package com.wjm.thread.test1;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class ThreadTest {

    public static void main(String[] args) {

        ExecutorService fixedThreadPool = Executors.newFixedThreadPool(20);

        MyRunnable myRunnable = new MyRunnable();
        for (int i = 0; i < 20; i++) {
            fixedThreadPool.submit(myRunnable);
        }

    }
}
